import request from '@/utils/request'

// 查询产线详细信息列表
export function listDetails(query) {
  return request({
    url: '/details/details/list',
    method: 'get',
    params: query
  })
}

// 查询产线详细信息详细
export function getDetails(id) {
  return request({
    url: '/details/details/' + id,
    method: 'get'
  })
}

// 新增产线详细信息
export function addDetails(data) {
  return request({
    url: '/details/details',
    method: 'post',
    data: data
  })
}

// 修改产线详细信息
export function updateDetails(data) {
  return request({
    url: '/details/details',
    method: 'put',
    data: data
  })
}

// 删除产线详细信息
export function delDetails(id) {
  return request({
    url: '/details/details/' + id,
    method: 'delete'
  })
}

// 查询产线详情信息列表
export function listAllDetails() {
  return request({
    url: '/details/details/listAllDetails',
    method: 'get'
  })
}
